package com.itheima.edu.entry;

import com.itheima.edu.controller.impl.StudentController;
import com.itheima.edu.controller.impl.TeacherController;

import java.util.Scanner;

public class ManagerInfoEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StudentController studentController = new StudentController();
        TeacherController teacherController = new TeacherController();
        while (true){
            System.out.println("欢迎登录学生管理系统");
            System.out.println("请选择你要执行的操作");
            System.out.println("1.学生管理  2.教师管理  3.退出系统");
            switch (sc.nextLine()){
                case "1":
                    studentController.start("学生");
                    break;
                case "2":
                    teacherController.start("教师");
                    break;
                case "3":
                    System.out.println("感谢使用,再见");
                    System.exit(0);
                    break;
            }
        }
    }
}
